Commit Graph

636 Commits

Author SHA1 Message Date
Jeremiah Leary 5aa92fbeba
Fixed spelling. 2018-11-13 06:31:54 -06:00
Jeremiah Leary e5ccaa32a6
Merge pull request #175 from jeremiah-c-leary/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2018-11-01 23:26:28 -05:00
Jeremiah Leary 699910c370
Create CODE_OF_CONDUCT.md 2018-11-01 23:25:42 -05:00
Jeremiah C Leary 33e81c896a Preparing for release 0.21
1)  Updated release number
  2)  Added/Updated comments
2018-11-01 21:04:31 -05:00
Jeremiah Leary b56bc14260
Merge pull request #173 from ryanfitzsimon/prefer_file_args
Don't use config file_list when file args supplied
2018-11-01 20:15:08 -05:00
Jeremiah Leary ea4c8dcda1
Merge pull request #174 from ryanfitzsimon/seq_equal
Use assertSequenceEqual to compare list and range
2018-11-01 20:14:33 -05:00
Jeremiah C Leary 75f42f7cb3 Updates for issue #171
1)  Added whitespace rule 009 and whitespace rule 010 for spaces around concatentation operators.
2)  Added tests
3)  Added documentation
2018-11-01 20:11:42 -05:00
Jeremiah C Leary 95b6f907c8 Updates for issue #172
Fixed mis-classification of less than or equal to (<=) in concurrent statements:

  1)  Updated tests
2018-11-01 19:21:41 -05:00
Ryan Fitzsimon abe1cb1247 Use assertSequenceEqual to compare list and range
Using assertEqual was causing the check to fail under Python 3, where
range() returns an object rather than a list.
2018-10-31 23:45:44 +10:00
Ryan Fitzsimon 15ccb4923f Don't use config file_list when file args supplied
Only use the file_list from the JSON configuration if no filename
arguments are supplied.

This allows local_rules and rule settings from a common configuration
file to be used when analysing only a single file.

This is particularly useful when VSG is being used as a checker by an
editor plugin such as Syntastic.
2018-10-31 23:37:17 +10:00
Jeremiah C Leary 0a4b99b3e5 Preparing for release 0.20wq 2018-09-22 09:25:53 -05:00
Jeremiah C Leary 738ff06054 Fixing documentation warnings. 2018-09-22 09:19:52 -05:00
Jeremiah C Leary 937ff79e13 Updates for issue #168
1)  Added handling of files being passed that do not exist
  2)  Updated documentation
  3)  Updated tests
2018-09-22 09:07:25 -05:00
Jeremiah C Leary 25dee56a37 Updates for issue #167
1)  Fixed setting failures to something other than 0 in JUNIT file when no failures were detected.
2018-09-17 20:19:00 -05:00
Jeremiah C Leary ce8a1ec582 Preparing for release 0.18 2018-09-13 22:32:06 -05:00
Jeremiah C Leary fb27c4434a Updates for issue #166:
1)  Fixed classification of "begin" keyword in comments
  2)  Updated tests
  3)  Split vhdlFile process tests into their own file
2018-09-13 22:28:22 -05:00
Jeremiah C Leary 846054db02 Allowing for instances to be declared in blocks. 2018-09-13 22:07:23 -05:00
Jeremiah Leary 1c9d189d37
Merge pull request #165 from ryanfitzsimon/block_support
Block support
2018-09-13 05:28:39 -05:00
Ryan Fitzsimon ace1736767 Simplify block test
Use list comprehensions rather than iterating and appending.

Don't worry about limiting the number of lines considered in
test_block_indent_assignment(). The other tests don't do this and the
comparison will work as expected even if the lists are different sizes.

Remove unnecessary comments. It is obvious that the result of a list
comprehension will be a list and that assertEqual will compare its two
arguments.
2018-09-13 15:49:50 +10:00
Ryan Fitzsimon dc68862ad1 Allow varied constant indentation levels
Use the previous indent level for constants instead of always setting
it to 1.
2018-09-13 15:49:42 +10:00
Ryan Fitzsimon 591ab27a7e Add type and constant to the block unit test
Add an array type and constant to the block unit test input file to
increase the range of scenarios covered.

Change the entity name from "ENTITY" to "BLOCK_EXAMPLE" so that it does
not conflict with the keyword.

Add an entity declaration so that the file is a valid standalone VHDL
design.
2018-09-13 15:49:30 +10:00
Jeremiah C Leary 510ba10e8c Updates for issue #161
Adding initial support for blocks:

  1)  block structures are now detected
  2)  indenting enforced

NOTE:  extensive testing of structures within a block have not been tested.
2018-09-12 20:53:05 -05:00
Jeremiah C Leary 7ea93f7238 Updates for issue #164
1)  Added more restrictions on detecting record keyword
  2)  Updated tests
2018-09-12 19:51:31 -05:00
Jeremiah Leary 645da4f40b
Merge pull request #160 from ryanfitzsimon/master
Add initial support for Python 3 and Windows
2018-09-12 16:14:01 -05:00
Jeremiah Leary b15ca5b829
Merge pull request #163 from ryanfitzsimon/signal_classify
Tighten requirements for classification as signal
2018-09-12 15:31:21 -05:00
Ryan Fitzsimon 7570c18be7 Tighten requirements for classification as signal
Require the "signal" keyword to be followed by whitespace.

This prevents lines beginning with identifiers made up of "signal"
and some suffix (such as "signal1" or "signal_a") from being classified
as signals.
2018-09-04 18:05:26 +10:00
Ryan Fitzsimon 59932aecaa Add egg metadata to .gitignore 2018-09-04 10:23:19 +10:00
Ryan Fitzsimon 899b220f5b Add os module import to __main__
This import wasn't kept in the move from bin/vsg to vsg/__main__.py,
but is still required when a configuration file is used.
2018-08-31 15:00:21 +10:00
Ryan Fitzsimon 368e749957 Use entry point instead of script 2018-08-31 11:24:26 +10:00
Ryan Fitzsimon 2bd8858e21 Move main logic into module
Create a __main__ module and move the main() function into it.

Replace launch script with a wrapper that sets the python path, then
calls vsg.__main__.main().
2018-08-31 11:24:22 +10:00
Ryan Fitzsimon 79456cf1a2 Use explicit relative imports
Implicit relative imports are not supported in Python 3 (see pep-0404).

Using explicit relative imports also helps avoid name clashes.
2018-08-31 11:24:13 +10:00
Ryan Fitzsimon 84161db59f Use /bin/usr/env in shebang to find python 2018-08-30 20:57:00 +10:00
Jeremiah C Leary b5d9435910 Updates for Codacy.
1)  Removed trailing whitespace
2018-08-28 14:29:52 -05:00
Jeremiah C Leary 7c3b12c28f Preparing for release 0.17 2018-08-28 14:18:43 -05:00
Jeremiah C Leary 7f4230fddb Updates for issue #158:
1)  Allowing comments on line before case keyword
  2)  Updated tests
  3)  Updated documentation
2018-08-28 14:14:52 -05:00
Jeremiah C Leary a19100a342 Updates for issue #159:
1)  Added shortened versions of most command line options.
2018-08-28 06:00:38 -05:00
Jeremiah C Leary 5a12742643 Preparing for release 0.16 2018-08-26 17:14:26 -05:00
Jeremiah C Leary a31e4fadf1 Updating overview documentation. 2018-08-26 17:06:05 -05:00
Jeremiah C Leary 49b2ca879e Updates for issue #157
1)  Added port rule 022 to remove blank lines after the port keyword.
  2)  Added tests
  3)  Updated documentation
2018-08-26 16:44:59 -05:00
Jeremiah C Leary d452b5c5e6 Preparing for release 0.15 2018-08-18 07:32:11 -05:00
Jeremiah C Leary ec29156679 Updates for issue #155
1)  Updated tests to detect issue
  2)  Updated utilities.reclassify_line to not classify null statements as sequential statements
2018-08-18 07:17:11 -05:00
Jeremiah C Leary 4ccbfc5f75 Updates for issue #156
1)  Updated tests to detect comment issue
  2)  Updated utilities.reclassify_line to detect comment
2018-08-18 06:54:40 -05:00
Jeremiah C Leary 2e10eabb5f Preparing for release 0.14 2018-07-30 22:10:27 -05:00
Jeremiah C Leary f89b7e9391 Updates for issue #153:
1)  Added backup command line option
2018-07-30 22:07:22 -05:00
Jeremiah C Leary 742a808003 Updates for issue #152
1)  Made process_029 less greedy when searching for rising_edge and falling_edge
2018-07-30 21:50:21 -05:00
Jeremiah C Leary 03b384bd8d Preparing for release 0.13 2018-06-28 22:03:30 -05:00
Jeremiah C Leary edcea7f577 Updates for issue #151:
1)  Added new command line parameter to support multiple outputs
      a)  vsg
      b)  syntastic
  2)  Updated documentation
  3)  Updated tests
2018-06-28 21:56:40 -05:00
Jeremiah C Leary 3411318e4e Preparing for 0.12.1 release. 2018-06-26 20:39:01 -05:00
Jeremiah C Leary b455785897 Updates for issue #150:
1)  Non VHDL keyword signal types are not flagged by signal_010
  2)  Fixed error with signal_009 checking colon alignments in the whole file instead of just in the architecture declaration.
  3)  Updated documentation
  4)  Updated tests
2018-06-26 20:35:32 -05:00
Jeremiah C Leary bba4789959 Fixing code style issues for codacy. 2018-06-20 20:19:08 -05:00